projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f875bbb
)
dm: simplify uclass_foreach_dev() implementation
author
Masahiro Yamada
<
[email protected]
>
Mon, 10 Aug 2015 16:09:43 +0000
(
01:09
+0900)
committer
Simon Glass
<
[email protected]
>
Mon, 31 Aug 2015 13:56:44 +0000
(07:56 -0600)
This can be simply written with list_for_each_entry(), maybe
this macro was not necessary in the first place.
Signed-off-by: Masahiro Yamada <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
include/dm/uclass.h
patch
|
blob
|
history
diff --git
a/include/dm/uclass.h
b/include/dm/uclass.h
index d56877c89825e432b64cff0d17a5dab830ec2303..d214b887341b9b8711fc1e71ec4c2568c3367c71 100644
(file)
--- a/
include/dm/uclass.h
+++ b/
include/dm/uclass.h
@@
-240,12
+240,7
@@
int uclass_resolve_seq(struct udevice *dev);
* are no more devices.
* @uc: uclass to scan
*/
-#define uclass_foreach_dev(pos, uc) \
- for (pos = list_entry((&(uc)->dev_head)->next, typeof(*pos), \
- uclass_node); \
- prefetch(pos->uclass_node.next), \
- &pos->uclass_node != (&(uc)->dev_head); \
- pos = list_entry(pos->uclass_node.next, typeof(*pos), \
- uclass_node))
+#define uclass_foreach_dev(pos, uc) \
+ list_for_each_entry(pos, &uc->dev_head, uclass_node)
#endif